<select name="log_sta_id" <?=$estilo;?>>
    
    <option value="">Status</option>

    <?php 
    $sql_logisticastatus = "SELECT * FROM logisticastatus WHERE sta_id='1' ORDER BY log_sta_id";
    $res_logisticastatus = sql($sql_logisticastatus);
    while($linha_logisticastatus = mysql_fetch_array($res_logisticastatus)){
    ?>

    <option value="<?=$linha_logisticastatus['log_sta_id'];?>" <?php if($linha_logisticastatus['log_sta_id'] == $log_sta_id) { echo "selected"; } ?>><?=$linha_logisticastatus['log_sta_nome'];?></option>

    <?php } ?>

</select>